;(function(){
  'use strict';

  /**
   * @ngdoc function
   * @name sasApp.controller:logCtrl
   * @description  日志管理模块(logManage)
   * Controller of the sasApp
   */
  angular.module('controllers.userManager.log',[])
    .controller('logMainController', function ($scope,CoreService) {
      //默认第一个Tabs
      $scope.selectedIndex = 1;
      //模块下Tabs 的 url
      var spans = ['/logQuery','/backupLog'];
      //导航样式
      $scope.selectedIndex = CoreService.navgit(spans);
      $scope.$on('$stateChangeSuccess', function(evt, state) {
        $scope.selectedIndex = spans.indexOf(state.url);
      });
    });

})();
